﻿@model WineStore.Models.AboutUs
@{
    ViewBag.Title = "EditAboutUs";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
}
<!-- Table (TABLE) -->
@section Styles
{
    <style type="text/css">
        .text-box{width:818px;}
        .text-box-des{width:820px;}
    </style>
}
@section Scripts{
    <script src="@Url.Content("~/Scripts/ckeditor/ckeditor.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/ckeditor/adapters/jquery.js")" type="text/javascript"></script>
}
@if (Session["Admin"] != null)
{
<h3 class="tit">
    Edit About Us
</h3>
<fieldset>
    <legend>Edit About Us</legend>
    @using (Html.BeginForm("EditAboutUs", "AboutUs", FormMethod.Post, new { enctype = "multipart/form-data" }))
    { 
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.AboutUsId)
        <table class="nostyle">
            <tbody>
                <tr>
                    <td>
                        Content (English)
                    </td>
                    <td>
                        @Html.TextAreaFor(model => model.AboutUsContent_EN, new { @id="ckAboutUsContent_EN"})
                         <script type="text/javascript">
                             CKEDITOR.replace("ckAboutUsContent_EN");
                        </script>
                    </td>
                </tr>
                <tr>
                    <td>
                        Content (German)
                    </td>
                    <td>
                        @Html.TextAreaFor(model => model.AboutUsContent_GER, new { @id="ckAboutUsContent_GER"})
                         <script type="text/javascript">
                             CKEDITOR.replace("ckAboutUsContent_GER");
                        </script>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <input type="submit" value="Edit AboutUs" class="submit"/>
                    </td>
                </tr>
                
            </tbody>
        </table>
    }
</fieldset>
}
else
{
    Response.Redirect("~/Admin/LogOn/");
}